﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GbmpDefines.h"
#include "GmUiInplaceEditCommon.h"
#include "qcoreevent.h"
#include "OwnerPtr.h"

namespace gcmp
{
    //TODO zhangqx 这个未来需要通过平台的Event事件，发送给MainWindow
    class ICommunicationProtocol;
    class GM_UI_INPLACE_EDIT_COMMON_EXPORT ProcessProtocolEvent : public QEvent
    {
    public:
        virtual ~ProcessProtocolEvent() {}
        ProcessProtocolEvent();

        void SetProtocol(OwnerPtr<ICommunicationProtocol> opProtocol);
        ICommunicationProtocol* GetProtocol();

    private:
        OwnerPtr<ICommunicationProtocol> m_message;
    };
}
